﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000535 RID: 1333
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FHBGCJDCJKP : IMessage<FHBGCJDCJKP>, IMessage, IEquatable<FHBGCJDCJKP>, IDeepCloneable<FHBGCJDCJKP>, IBufferMessage
	{
		// Token: 0x17001139 RID: 4409
		// (get) Token: 0x06003C33 RID: 15411 RVA: 0x000A5EB9 File Offset: 0x000A40B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FHBGCJDCJKP> Parser
		{
			get
			{
				return FHBGCJDCJKP._parser;
			}
		}

		// Token: 0x1700113A RID: 4410
		// (get) Token: 0x06003C34 RID: 15412 RVA: 0x000A5EC0 File Offset: 0x000A40C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FHBGCJDCJKPReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700113B RID: 4411
		// (get) Token: 0x06003C35 RID: 15413 RVA: 0x000A5ED2 File Offset: 0x000A40D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FHBGCJDCJKP.Descriptor;
			}
		}

		// Token: 0x06003C36 RID: 15414 RVA: 0x000A5ED9 File Offset: 0x000A40D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FHBGCJDCJKP()
		{
		}

		// Token: 0x06003C37 RID: 15415 RVA: 0x000A5EE1 File Offset: 0x000A40E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FHBGCJDCJKP(FHBGCJDCJKP other) : this()
		{
			this.avatarType_ = other.avatarType_;
			this.assistUid_ = other.assistUid_;
			this.id_ = other.id_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003C38 RID: 15416 RVA: 0x000A5F1E File Offset: 0x000A411E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FHBGCJDCJKP Clone()
		{
			return new FHBGCJDCJKP(this);
		}

		// Token: 0x1700113C RID: 4412
		// (get) Token: 0x06003C39 RID: 15417 RVA: 0x000A5F26 File Offset: 0x000A4126
		// (set) Token: 0x06003C3A RID: 15418 RVA: 0x000A5F2E File Offset: 0x000A412E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x1700113D RID: 4413
		// (get) Token: 0x06003C3B RID: 15419 RVA: 0x000A5F37 File Offset: 0x000A4137
		// (set) Token: 0x06003C3C RID: 15420 RVA: 0x000A5F3F File Offset: 0x000A413F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AssistUid
		{
			get
			{
				return this.assistUid_;
			}
			set
			{
				this.assistUid_ = value;
			}
		}

		// Token: 0x1700113E RID: 4414
		// (get) Token: 0x06003C3D RID: 15421 RVA: 0x000A5F48 File Offset: 0x000A4148
		// (set) Token: 0x06003C3E RID: 15422 RVA: 0x000A5F50 File Offset: 0x000A4150
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x06003C3F RID: 15423 RVA: 0x000A5F59 File Offset: 0x000A4159
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FHBGCJDCJKP);
		}

		// Token: 0x06003C40 RID: 15424 RVA: 0x000A5F68 File Offset: 0x000A4168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FHBGCJDCJKP other)
		{
			return other != null && (other == this || (this.AvatarType == other.AvatarType && this.AssistUid == other.AssistUid && this.Id == other.Id && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003C41 RID: 15425 RVA: 0x000A5FC4 File Offset: 0x000A41C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.AssistUid != 0U)
			{
				num ^= this.AssistUid.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003C42 RID: 15426 RVA: 0x000A603B File Offset: 0x000A423B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003C43 RID: 15427 RVA: 0x000A6043 File Offset: 0x000A4243
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003C44 RID: 15428 RVA: 0x000A604C File Offset: 0x000A424C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Id);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(24);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this.AssistUid != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.AssistUid);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003C45 RID: 15429 RVA: 0x000A60C0 File Offset: 0x000A42C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.AssistUid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AssistUid);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003C46 RID: 15430 RVA: 0x000A6130 File Offset: 0x000A4330
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FHBGCJDCJKP other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.AssistUid != 0U)
			{
				this.AssistUid = other.AssistUid;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003C47 RID: 15431 RVA: 0x000A6194 File Offset: 0x000A4394
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003C48 RID: 15432 RVA: 0x000A61A0 File Offset: 0x000A43A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 24U)
					{
						if (num != 40U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.AssistUid = input.ReadUInt32();
						}
					}
					else
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.Id = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040017DD RID: 6109
		private static readonly MessageParser<FHBGCJDCJKP> _parser = new MessageParser<FHBGCJDCJKP>(() => new FHBGCJDCJKP());

		// Token: 0x040017DE RID: 6110
		private UnknownFieldSet _unknownFields;

		// Token: 0x040017DF RID: 6111
		public const int AvatarTypeFieldNumber = 3;

		// Token: 0x040017E0 RID: 6112
		private AvatarType avatarType_;

		// Token: 0x040017E1 RID: 6113
		public const int AssistUidFieldNumber = 5;

		// Token: 0x040017E2 RID: 6114
		private uint assistUid_;

		// Token: 0x040017E3 RID: 6115
		public const int IdFieldNumber = 1;

		// Token: 0x040017E4 RID: 6116
		private uint id_;
	}
}
